import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";

const routes: Routes = [
  { path: "route", loadChildren: "./routes/routes.module#RoutesModule" },
  {
    path: "exception",
    loadChildren: "./exception/exception.module#ExceptionModule",
  },
  // { path: "", redirectTo: "route/scanTask/list", pathMatch: "full" },
  { path: "", redirectTo: "route/formTable/baseUse", pathMatch: "full" },
  { path: "**", redirectTo: "exception/404", pathMatch: "full" },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {}
